<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>emp-toolkit: PRG Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo-full-doxygen.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">emp-toolkit
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_p_r_g.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="class_p_r_g-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">PRG Class Reference<div class="ingroups"><a class="el" href="group___b_p.html">Basic Primitives</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="prg_8h_source.html">prg.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a6581a2e36b6441e589e19e1af0ecba79"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_r_g.html#a6581a2e36b6441e589e19e1af0ecba79">PRG</a> (const void *seed=nullptr, int id=0)</td></tr>
<tr class="separator:a6581a2e36b6441e589e19e1af0ecba79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71e9b3256b36b72e1198064469381b2c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_r_g.html#a71e9b3256b36b72e1198064469381b2c">reseed</a> (const void *key, uint64_t id=0)</td></tr>
<tr class="separator:a71e9b3256b36b72e1198064469381b2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3b64a0c91c31cec853c1829953409520"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_r_g.html#a3b64a0c91c31cec853c1829953409520">random_data</a> (void *data, int nbytes)</td></tr>
<tr class="separator:a3b64a0c91c31cec853c1829953409520"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a364a86de7a055f92198d2d8762f0288c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_r_g.html#a364a86de7a055f92198d2d8762f0288c">random_bool</a> (bool *data, int length)</td></tr>
<tr class="separator:a364a86de7a055f92198d2d8762f0288c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83bcd8ff830fa32a3ceb389f5d1a4985"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_r_g.html#a83bcd8ff830fa32a3ceb389f5d1a4985">random_data_unaligned</a> (void *data, int nbytes)</td></tr>
<tr class="separator:a83bcd8ff830fa32a3ceb389f5d1a4985"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a822a2e39f1d2629b881ce9b3b8d66bf9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_r_g.html#a822a2e39f1d2629b881ce9b3b8d66bf9">random_block</a> (<a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *data, int nblocks=1)</td></tr>
<tr class="separator:a822a2e39f1d2629b881ce9b3b8d66bf9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8560a2768e2ed1d9ce3cdc26a3b793d"><td class="memTemplParams" colspan="2">template&lt;typename T , typename ... L&gt; </td></tr>
<tr class="memitem:ab8560a2768e2ed1d9ce3cdc26a3b793d"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_p_r_g.html#ab8560a2768e2ed1d9ce3cdc26a3b793d">random_bn</a> (T t, L... l)</td></tr>
<tr class="separator:ab8560a2768e2ed1d9ce3cdc26a3b793d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71453a36645027b3da285277b73e5a14"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_r_g.html#a71453a36645027b3da285277b73e5a14">random_bn</a> (bn_t a, int sign=BN_POS, int bits=<a class="el" href="utils__ec_8h.html#a1c3815a8647e6c0fd8e19b2107f2e4fd">BIT_LEN</a>)</td></tr>
<tr class="separator:a71453a36645027b3da285277b73e5a14"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a925ec137b5d9e2ba1ac05a4789567a5e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_r_g.html#a925ec137b5d9e2ba1ac05a4789567a5e">random_bn</a> (bn_t *a, int length=1, int sign=BN_POS, int bits=<a class="el" href="utils__ec_8h.html#a1c3815a8647e6c0fd8e19b2107f2e4fd">BIT_LEN</a>)</td></tr>
<tr class="separator:a925ec137b5d9e2ba1ac05a4789567a5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0413492d30592c36c835091915bc9104"><td class="memTemplParams" colspan="2">template&lt;typename T , typename ... L&gt; </td></tr>
<tr class="memitem:a0413492d30592c36c835091915bc9104"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_p_r_g.html#a0413492d30592c36c835091915bc9104">random_eb</a> (T t, L... l)</td></tr>
<tr class="separator:a0413492d30592c36c835091915bc9104"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa84e72965df430ab422ea6fa41ac4265"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_r_g.html#aa84e72965df430ab422ea6fa41ac4265">random_eb</a> (eb_t p)</td></tr>
<tr class="separator:aa84e72965df430ab422ea6fa41ac4265"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac79707eb0fae38722f8e5ea37b7ba7f3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_r_g.html#ac79707eb0fae38722f8e5ea37b7ba7f3">random_eb</a> (eb_t *p, int length=1)</td></tr>
<tr class="separator:ac79707eb0fae38722f8e5ea37b7ba7f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca0e5e9c263b4062c25bd2f0530eaebb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_r_g.html#aca0e5e9c263b4062c25bd2f0530eaebb">random_mpz</a> (mpz_t out, int nbits)</td></tr>
<tr class="separator:aca0e5e9c263b4062c25bd2f0530eaebb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad58d1a383da97703f0af25d4eb0179d9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_r_g.html#ad58d1a383da97703f0af25d4eb0179d9">random_mpz</a> (mpz_t rop, const mpz_t n)</td></tr>
<tr class="separator:ad58d1a383da97703f0af25d4eb0179d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:abbf584745c33fc90ba28cc4af194ce1a"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_r_g.html#abbf584745c33fc90ba28cc4af194ce1a">counter</a> = 0</td></tr>
<tr class="separator:abbf584745c33fc90ba28cc4af194ce1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a567930c31c3371f18099e5c8302aff71"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_a_e_s___k_e_y.html">AES_KEY</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_r_g.html#a567930c31c3371f18099e5c8302aff71">aes</a></td></tr>
<tr class="separator:a567930c31c3371f18099e5c8302aff71"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a6581a2e36b6441e589e19e1af0ecba79"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6581a2e36b6441e589e19e1af0ecba79">&sect;&nbsp;</a></span>PRG()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">PRG::PRG </td>
          <td>(</td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>seed</em> = <code>nullptr</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>id</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a822a2e39f1d2629b881ce9b3b8d66bf9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a822a2e39f1d2629b881ce9b3b8d66bf9">&sect;&nbsp;</a></span>random_block()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void PRG::random_block </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nblocks</em> = <code>1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ab8560a2768e2ed1d9ce3cdc26a3b793d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab8560a2768e2ed1d9ce3cdc26a3b793d">&sect;&nbsp;</a></span>random_bn() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T , typename ... L&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void PRG::random_bn </td>
          <td>(</td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>t</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">L...&#160;</td>
          <td class="paramname"><em>l</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a71453a36645027b3da285277b73e5a14"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a71453a36645027b3da285277b73e5a14">&sect;&nbsp;</a></span>random_bn() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void PRG::random_bn </td>
          <td>(</td>
          <td class="paramtype">bn_t&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>sign</em> = <code>BN_POS</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>bits</em> = <code><a class="el" href="utils__ec_8h.html#a1c3815a8647e6c0fd8e19b2107f2e4fd">BIT_LEN</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a925ec137b5d9e2ba1ac05a4789567a5e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a925ec137b5d9e2ba1ac05a4789567a5e">&sect;&nbsp;</a></span>random_bn() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void PRG::random_bn </td>
          <td>(</td>
          <td class="paramtype">bn_t *&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>length</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>sign</em> = <code>BN_POS</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>bits</em> = <code><a class="el" href="utils__ec_8h.html#a1c3815a8647e6c0fd8e19b2107f2e4fd">BIT_LEN</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a364a86de7a055f92198d2d8762f0288c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a364a86de7a055f92198d2d8762f0288c">&sect;&nbsp;</a></span>random_bool()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void PRG::random_bool </td>
          <td>(</td>
          <td class="paramtype">bool *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a3b64a0c91c31cec853c1829953409520"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3b64a0c91c31cec853c1829953409520">&sect;&nbsp;</a></span>random_data()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void PRG::random_data </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nbytes</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a83bcd8ff830fa32a3ceb389f5d1a4985"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a83bcd8ff830fa32a3ceb389f5d1a4985">&sect;&nbsp;</a></span>random_data_unaligned()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void PRG::random_data_unaligned </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nbytes</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a0413492d30592c36c835091915bc9104"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0413492d30592c36c835091915bc9104">&sect;&nbsp;</a></span>random_eb() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T , typename ... L&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void PRG::random_eb </td>
          <td>(</td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>t</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">L...&#160;</td>
          <td class="paramname"><em>l</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aa84e72965df430ab422ea6fa41ac4265"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa84e72965df430ab422ea6fa41ac4265">&sect;&nbsp;</a></span>random_eb() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void PRG::random_eb </td>
          <td>(</td>
          <td class="paramtype">eb_t&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ac79707eb0fae38722f8e5ea37b7ba7f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac79707eb0fae38722f8e5ea37b7ba7f3">&sect;&nbsp;</a></span>random_eb() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void PRG::random_eb </td>
          <td>(</td>
          <td class="paramtype">eb_t *&#160;</td>
          <td class="paramname"><em>p</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>length</em> = <code>1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aca0e5e9c263b4062c25bd2f0530eaebb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca0e5e9c263b4062c25bd2f0530eaebb">&sect;&nbsp;</a></span>random_mpz() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void PRG::random_mpz </td>
          <td>(</td>
          <td class="paramtype">mpz_t&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nbits</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ad58d1a383da97703f0af25d4eb0179d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad58d1a383da97703f0af25d4eb0179d9">&sect;&nbsp;</a></span>random_mpz() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void PRG::random_mpz </td>
          <td>(</td>
          <td class="paramtype">mpz_t&#160;</td>
          <td class="paramname"><em>rop</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const mpz_t&#160;</td>
          <td class="paramname"><em>n</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a71e9b3256b36b72e1198064469381b2c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a71e9b3256b36b72e1198064469381b2c">&sect;&nbsp;</a></span>reseed()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void PRG::reseed </td>
          <td>(</td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>id</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a567930c31c3371f18099e5c8302aff71"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a567930c31c3371f18099e5c8302aff71">&sect;&nbsp;</a></span>aes</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_a_e_s___k_e_y.html">AES_KEY</a> PRG::aes</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="abbf584745c33fc90ba28cc4af194ce1a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abbf584745c33fc90ba28cc4af194ce1a">&sect;&nbsp;</a></span>counter</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t PRG::counter = 0</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/Users/wangxiao/git/emp-toolkit/emp-tool/utils/<a class="el" href="prg_8h_source.html">prg.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_p_r_g.html">PRG</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.12 </li>
  </ul>
</div>
</body>
</html>
